<html>
	<head>
		<title>让图片自动适应DIV容器大小</title>
		<style>
		.aixuexi{
			width:200px;
			height:200px;
			border:1px solid black;
			/*overflow: hidden;*/
		}
		.aixuexi img{width:100%;height:100%;}
		</style>
	</head>
<body>
	<div class="aixuexi">
		<img src="../public/imgs/1.jpg"/>
	</div>
</body>
</html>